//
//  RecordsOedrtTVCell.m
//  Logistics
//
//  Created by enzhoukeji on 2018/8/10.
//  Copyright © 2018年 puyue.com. All rights reserved.
//

#import "RecordsOedrtTVCell.h"

@implementation RecordsOedrtTVCell

-(void)loadViews {
    self.titleLbael = [UILabel labelWithSize:[UIFont systemFontOfSize:15] withColor:[UIColor blackColor] withText:@"维修付款"];
    self.contentLabel = [UILabel labelWithSize:[UIFont systemFontOfSize:13] withColor:[UIColor blackColor] withText:@"诺克萨斯之手斯诺克"];
    self.timeLabel = [UILabel labelWithSize:[UIFont systemFontOfSize:9] withColor:[UIColor grayColor] withText:@"2019-03-3-32  19:22"];
    self.numberLabel = [UILabel labelWithSize:[UIFont systemFontOfSize:20] withColor:[UIColor blackColor] withText:@"-88"];
    self.typeLabel = [UILabel labelWithSize:[UIFont systemFontOfSize:13] withColor:[UIColor blackColor] withText:@"交易结束"];
    [self addSubview:self.titleLbael];
    [self addSubview:self.contentLabel];
    [self addSubview:self.timeLabel];
    [self addSubview:self.numberLabel];
    [self addSubview:self.typeLabel];
}
-(void)layoutViews{
    [self.titleLbael mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(GTFixHeightFlaot(10));
        make.left.mas_equalTo(GTFixWidthFlaot(15));
        make.height.mas_equalTo(GTFixHeightFlaot(15));
        make.width.mas_equalTo(self.titleLbael.mas_width);
    }];
    [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.titleLbael.mas_bottom).offset(GTFixHeightFlaot(5));
        make.left.mas_equalTo(GTFixWidthFlaot(15));
        make.height.mas_equalTo(GTFixHeightFlaot(15));
        make.width.mas_equalTo(self.contentLabel.mas_width);
    }];
    [self.timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.contentLabel.mas_bottom).offset(GTFixHeightFlaot(5));
        make.left.mas_equalTo(GTFixWidthFlaot(15));
        make.height.mas_equalTo(GTFixHeightFlaot(10));
        make.width.mas_equalTo(self.contentLabel.mas_width);
    }];
    [self.numberLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(GTFixHeightFlaot(15));
        make.right.mas_equalTo(GTFixWidthFlaot(-15));
        make.height.mas_equalTo(GTFixHeightFlaot(30));
        make.width.mas_equalTo(self.numberLabel.mas_width);
    }];
    [self.typeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.numberLabel.mas_bottom).offset(GTFixHeightFlaot(0));
        make.right.mas_equalTo(GTFixWidthFlaot(-20));
        make.height.mas_equalTo(GTFixHeightFlaot(15));
        make.width.mas_equalTo(self.typeLabel.mas_width);
    }];
}
@end






